#ifndef TOKEN_LIST_H
#define TOKEN_LIST_H

#include "list.h"
extern struct list_head tk_buffer_g;
extern struct list_head tk_uesd_g;

typedef struct tk_node{
	symbol_e tk;
	void *pval;
	struct list_head entry;
	int line;
	int col;
}tk_node_t;

void move_token_to_buffer(void);

void print_token(tk_node_t *node);
tk_node_t *token_dequeue(struct list_head *head);
void put_token_back(int num);
void destroy_token_queue(void);
#endif